﻿using SenseVoiceSharp;

public class Program
{
    public static void Main()
    {
        var config = new ModelConfig
        {
            ModelPath = "sensevoice-onnx\\sense-voice-encoder-int8.onnx",
            EmbeddingPath = "sensevoice-onnx\\embedding.npy",
            BpePath = "sensevoice-onnx\\chn_jpn_yue_eng_ko_spectok.bpe.model",
            CmvnPath = "sensevoice-onnx\\am.mvn"
        };
        var tool = new SenseVoiceTool(config);
        var time0 = DateTime.Now;
        var result = tool.Transcribe("model\\trump_0.wav");
        var time1 = DateTime.Now;
        Console.WriteLine((time1 - time0).TotalMilliseconds);
        Console.WriteLine(result);
    }
}
